#ifndef BSP_GPIO_H
#define BSP_GPIO_H

#ifdef cplusplus
 extern "C" {
#endif

#include "gd32f4xx.h"
#include "def.h"

typedef struct {
	uint32_t clk;
    uint32_t port;
    uint32_t pin;
	uint32_t mode;
	uint32_t speed;
    uint32_t initState;
	uint8_t strArray[8];
} T_GpioCfgStru;

#if APP_ID  == 0
#define ADPT_LED_NUM  7
extern T_GpioCfgStru myGpioCfgArray[ADPT_LED_NUM];
#endif

int32_t AdptGpioInitFun(T_GpioCfgStru *ptrGpioCfg, uint32_t len);

#ifdef cplusplus
}
#endif
#endif
